package request

import "github.com/google/uuid"

// AlarmInfo alarm structure
type AlarmInfo struct {
	Source         string    `json:"source"`
	CameraID       int64     `json:"camera_id"`
	Area           string    `json:"area"`
	BySecure       int64     `json:"by_secure"`
	DangerDesc     string    `json:"danger_desc"`
	DangerTypeCode int64     `json:"danger_type_code"`
	DangerTypeName string    `json:"danger_type_name"`
	DepartmentID   string    `json:"department_id"`
	DepartmentName string    `json:"department_name"`
	Images         string    `json:"images"`
	SelectSecure   int64     `json:"select_secure"`
	UUID           uuid.UUID `json:"uuid"`
}

type Data struct {
	Token string `json:"token"`
}

// ResposeByAlarmCenter the repose back by alarm center
type ResposeByAlarmCenter struct {
	Success   bool   `json:"success"`
	Code      int64  `json:"code"`
	Message   string `json:"message"`
	Data      Data   `json:"data"`
	Timestamp string `json:"timestamp"`
}

// AlarmRequest alarm structure send to alarm center
type AlarmRequest struct {
	Area           string   `json:"area"`
	BySecure       int64    `json:"bySecure"`
	DangerDesc     string   `json:"dangerDesc"`
	DangerTypeCode int64    `json:"dangerTypeCode"`
	DangerTypeName string   `json:"dangerTypeName"`
	DepartmentID   string   `json:"departmentId"`
	DepartmentName string   `json:"departmentName"`
	Images         []string `json:"images"`
	SelectSecure   int64    `json:"selectSecure"`
}

type AlarmUserInfo struct {
	UserName string `json:"userName"`
	PassWord string `json:"password"`
}
